import { Injectable } from '@angular/core';
import { Hero } from '../modal/hero';
import { HEROES } from '../api/mock-heroes';

@Injectable()
export class HeroService {
    getHeroes(): Promise<Hero[]> {
      console.log(HEROES);
    return Promise.resolve(HEROES);
  }
}
